Page({
  // picslist: function () {
  //   wx.navigateTo({
  //     url: '../picslist/picslist',
  //   })
  // },


  picslist: function () {
    var that = this
    if (getApp().globalData.changePics.length < "3") {
      that.setData({ error: "请至少变3张图片", })
      that.setData({ error1: 1 })
      setTimeout(function () {
        that.setData({ error1: 2 })
      }, 1500)
      return;
    }
    wx.navigateTo({
      url: '../picslist/picslist',
    })
  },
  pholist: function (event) {
    var id = event.currentTarget.id
    wx.navigateTo({
      url: '../pholist/pholist?static_id=' + id

    })
  },
  
  onLoad: function () { 
    var that = this;
    wx.request({
      url: getApp().globalData.API_URI + '/index.php/face_static_albumlist',
      data: { //appid 与 secret为对应小程序项目后台获取
        'openid': getApp().globalData.openid,
        'nickname': getApp().globalData.nickName,
        'avatarurl': getApp().globalData.avatarUrl,
      },
      header: { "Content-Type": "application/x-www-form-urlencoded" },
      method: 'POST',
      success: function (res) {
        console.log("这是上传完图片回调回来的=====================");
        that.setData({ list: res.data.list })
        
        console.log(res.data.list);
      }
    })
  
  }





})